package org.xq.softcup.mq.admin.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.xq.softcup.mq.admin.model.MqTopic;

import java.util.List;

/**
 * 消息主体持久层
 * @author admin
 */
@Mapper
public interface IMqTopicDao {
    public List<MqTopic> pageList(@Param("offset") int offset,
                                  @Param("pagesize") int pagesize,
                                  @Param("bizId") int bizId,
                                  @Param("topic") String topic);

    public int pageListCount(@Param("offset") int offset,
                             @Param("pagesize") int pagesize,
                             @Param("bizId") int bizId,
                             @Param("topic") String topic);

    public MqTopic load(@Param("topic") String topic);

    public int add(@Param("mqTopic") MqTopic mqTopic);

    public int update(@Param("mqTopic") MqTopic mqTopic);

    public int delete(@Param("topic") String topic);

    public List<MqTopic> findAlarmByTopic(@Param("topics") List<String> topics);

}
